(function () { /*** Get included script tag, here we will embed player */ var existing_script_tag = document.getElementById( 'filesfm_embed_js__rjbrqryrh' ); /*** Embed container ***/ var embed_container_id = 'filesfm_embed_container__rjbrqryrh__rxqntukxznwn9mbq'; var embed_container = document.createElement( 'div' ); embed_container.id = embed_container_id; embed_container.className = "filesfm__embed_player__container"; embed_container.style.position = 'relative'; existing_script_tag.parentNode.insertBefore( embed_container, existing_script_tag ); /* Set container size */ embed_container.style.width = '100%'; embed_container.style.height = 'auto'; embed_container.style.minHeight = '30px'; // why set height to 100% if the poster image doesn't scale anyway? // embed_container.style.maxHeight = '100%'; embed_container.style.maxWidth = '100%'; embed_container.style.overflow = 'hidden'; var autoload = false; var autoplay = false; var files_fm__torrent = null; var videojs = null; var poster_img_orginal_width = null; var poster_img_orginal_height = null; var indicators_div = null; var poster_url = 'https://failiem.lv/thumb_video_picture.php?i=rjbrqryrh'; var poster = null; var poster_div_before = null; var poster_div_after = null; var bol_content_added = false; var bolUseMobileVideoFallback = false; var bolIsIOS = !!navigator.platform && /iPad|iPhone|iPod/.test( navigator.platform ); var bolIsMobile = mobileAndTabletCheck(); var bolIsVideoFile = Boolean(1); var bolUseVideoFallback = ( ( bolUseMobileVideoFallback && bolIsMobile ) || bolIsIOS ) && bolIsVideoFile; var bolIsLoaded_VideoJs = false; var bolIsLoaded_FilesfmVideoJs = false; if ( ! autoplay ) { if ( poster_url ) { var play_button_id = "filesfm_embed_palyer__play_button__rjbrqryrh__rxqntukxznwn9mbq"; var play_button = document.createElement('svg'); var posterImg = new Image(); posterImg.onload = function() { if ( bol_content_added ) return; poster_img_orginal_width = this.width; poster_img_orginal_height = this.height; poster = document.createElement( 'img' ); poster.id = embed_container_id + '_poster'; poster.src = poster_url; poster.style.width = '100%'; poster.style.maxHeight = '100%'; poster.style.display = 'block'; poster.style.opacity = '1'; poster.style.margin = '0 auto 0 auto'; poster.onload = function ( event ) { poster.proportion = poster.height / poster.width; refreshSize(); embed_container.appendChild( play_button ); play_button.outerHTML = getPlayButton(); play_button = document.getElementById( play_button_id ); play_button.style.zIndex=1; play_button.style.position="absolute"; play_button.style.cursor='pointer'; play_button.style.top = "50%"; play_button.style.left = "50%"; play_button.style.height = "10vh"; play_button.style.minHeight = "60px"; play_button.style.width = "10vh"; play_button.style.minWidth = "60px"; play_button.style.transform = "translate( -50%, -50% )"; play_button.className = "filesfm_embed_palyer__play_button"; play_button.onclick = function () { play_button.style.display = 'none'; if ( ! autoload ) { autoplay = true; initPlayer(); } else { document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq").style.display = 'block'; var intPlayTryInterval = setInterval( function() { if ( document.getElementById( 'player_video_rjbrqryrh__rxqntukxznwn9mbq' ) != null ) { document.getElementById( 'player_video_rjbrqryrh__rxqntukxznwn9mbq' ).play(); clearInterval( intPlayTryInterval ); } }, 100 ); } }; if ( autoload ) { initPlayer(); document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq").style.display = 'none'; } } poster_div_before = document.createElement( 'div' ); poster_div_before.className = "filesfm_embed_palyer__poster_div_before"; poster_div_before.innerHTML = "files-fm-lifetime 1tb.mp4"; poster_div_before.style.fontSize = '0px'; poster_div_after = document.createElement( 'div' ); poster_div_after.className = "filesfm_embed_palyer__poster_div_after"; embed_container.appendChild( poster_div_before ); embed_container.appendChild( poster ); embed_container.appendChild( poster_div_after ); if ( document.getElementById( 'filesfm_embed_palyer__poster_css' ) == null ) { var head = document.getElementsByTagName('head')[0]; var videoPosterCSS = document.createElement( 'link' ); videoPosterCSS.type = 'text/css'; videoPosterCSS.rel = "stylesheet"; videoPosterCSS.media = 'all'; videoPosterCSS.href = "https://failiem.lv/js/video/ffm.video.poster.css?v=1008"; videoPosterCSS.id = 'filesfm_embed_palyer__poster_css'; head.appendChild( videoPosterCSS ); } }; posterImg.src = poster_url; window.addEventListener('resize', refreshSize); } } else { initPlayer(); } if ( typeof( registerEmbedPlayerFileEventCallback ) === 'function' ) { registerEmbedPlayerFileEventCallback( 'rjbrqryrh', onFileEvent ) } function onFileEvent ( strEventCode ) { if ( files_fm__torrent === null ) { play_button.style.display = 'none'; switch ( strEventCode ) { case 'play': autoplay = true; case 'load': initPlayer (); break; } } else { var video = document.querySelector( '#player_video_rjbrqryrh__rxqntukxznwn9mbq video' ); if ( video ) { video.play(); } else { var audio = document.querySelector( '#player_video_rjbrqryrh__rxqntukxznwn9mbq audio' ); if ( audio ) { audio.play(); } } } } function initPlayer () { /*****************************/ /* Embed preloader */ if( ! document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq") ) { var preloader = document.createElement( 'svg' ); embed_container.appendChild( preloader ); preloader.outerHTML = getPreloader(); preloader = document.getElementById( "preloader_rjbrqryrh__rxqntukxznwn9mbq" ); } /*****************************/ // lazy load videojs library if( typeof( FilesFm_VideoJS ) === 'undefined' ) { var script = document.createElement( 'script' ); script.type = 'text/javascript'; script.async = true; script.src = "https://failiem.lv/js/filesfm_videojs/videojs_8.3.0/video.min.js"; existing_script_tag.parentNode.insertBefore( script, existing_script_tag ); script.onload = function() { bolIsLoaded_VideoJs = true; if ( bolIsLoaded_FilesfmVideoJs ) { initPlayer(); } } var script = document.createElement( 'script' ); script.type = 'text/javascript'; script.async = true; script.src = "https://failiem.lv/js/filesfm_videojs/filesfm_videojs.js?v=103"; existing_script_tag.parentNode.insertBefore( script, existing_script_tag ); script.onload = function() { bolIsLoaded_FilesfmVideoJs = true; if ( bolIsLoaded_VideoJs ) { initPlayer(); } } var head = document.getElementsByTagName('head')[0]; var css = document.createElement( 'link' ); css.type = 'text/css'; css.rel = "stylesheet"; css.media = 'all'; css.href = "https://failiem.lv/js/filesfm_videojs/videojs_8.3.0/video-js.css"; head.appendChild( css ); var css = document.createElement( 'link' ); css.type = 'text/css'; css.rel = "stylesheet"; css.media = 'all'; css.href = "https://failiem.lv/js/filesfm_videojs/css/filesfm_videojs.css?v=102"; head.appendChild( css ); return; } if ( bolUseVideoFallback ) { files_fm_video_fallback(); return; } /******************************************************/ /* If WebTorrent library is not included, include it. */ if ( typeof( FilesFm_P2P ) == 'undefined' ) { var script = document.createElement( 'script' ); script.type = 'text/javascript'; script.async = true; script.onload = function () { // Construct player filesfm_ep_loaded(); }; script.src = 'https://failiem.lv/webtorrent/FilesFm_P2P/filesfm_p2p.min.js?v=1002'; existing_script_tag.parentNode.insertBefore( script, existing_script_tag ); } else { // Construct player filesfm_ep_loaded(); } /******************************************************/ } var resResizeTimeout = null; function refreshSize() { if ( poster && poster.proportion && poster.width ) { if ( resResizeTimeout !== null ) clearTimeout( resResizeTimeout ); resResizeTimeout = setTimeout (function (){ if ( poster_img_orginal_width != null ) { if ( poster_img_orginal_width > poster_img_orginal_height ) { embed_container.style.width = '100%'; // why set height to 100% if the poster image doesn't scale anyway? // embed_container.style.height = '100%'; embed_container.style.height = 'auto'; } else { embed_container.style.width = '100%'; embed_container.style.height = document.getElementById( embed_container.id ).offsetHeight; } if ( document.getElementById( embed_container.id ).offsetHeight > document.getElementById( embed_container.id ).parentElement.offsetHeight ) { embed_container.style.width = '100%'; embed_container.style.height = document.getElementById( embed_container.id ).parentElement.offsetHeight; } if ( document.getElementById( embed_container.id ).offsetWidth > document.getElementById( embed_container.id ).parentElement.offsetWidth ) { embed_container.style.width = document.getElementById( embed_container.id ).parentElement.offsetWidth; embed_container.style.height = '100%'; } } else { embed_container.style.height = (poster.width * poster.proportion) + 'px'; } if ( document.getElementsByClassName( 'gallery2__video_container' ).length > 0 ) { // Get poster size var PLAYER_PROPORTION = 0.565; var objVideoContStyle = window.getComputedStyle( document.getElementsByClassName( 'gallery2__video_container' )[ 0 ], null ); var intVideoContainerWidth = parseFloat( objVideoContStyle.width ) - parseFloat( objVideoContStyle.paddingLeft ) - parseFloat( objVideoContStyle.paddingRight ); var intVideoContainerHeight = parseFloat( objVideoContStyle.height ) - parseFloat( objVideoContStyle.paddingTop ) - parseFloat( objVideoContStyle.paddingBottom ); var intVideoPlayerWidth = intVideoContainerWidth - 1; var intVideoPlayerHeight = intVideoPlayerWidth * PLAYER_PROPORTION; if ( intVideoPlayerHeight > ( intVideoContainerHeight - 100 ) ) { intVideoPlayerHeight = intVideoContainerHeight - 100; intVideoPlayerWidth = intVideoPlayerHeight / PLAYER_PROPORTION; } if ( intVideoPlayerHeight < 240 ) { intVideoPlayerHeight = 240; } var intPosterHeight = intVideoPlayerHeight; var intPosterWidth = ( intPosterHeight / poster_img_orginal_height ) * poster_img_orginal_width; if ( intPosterWidth > intVideoPlayerWidth ) { intPosterWidth = intVideoPlayerWidth; intPosterHeight = ( intPosterWidth / poster_img_orginal_width ) * poster_img_orginal_height; } poster.style.height = intPosterHeight + 'px'; if ( intVideoPlayerHeight > intPosterHeight ) { poster.style.marginTop = ( ( intVideoPlayerHeight - intPosterHeight ) / 2 ) + 'px'; } embed_container.style.height = intVideoPlayerHeight + 'px'; embed_container.style.maxHeight = intVideoPlayerHeight + 'px'; embed_container.style.width = intVideoPlayerWidth + 'px'; embed_container.style.minWidth = 'unset'; } }, 50); } } function files_fm_video_fallback () { var video = document.createElement( "video" ); video.preload = "metadata"; video.poster = poster_url; if ( poster ) video.style.width = poster.style.width; video.controls=true; video.id = 'player_video_rjbrqryrh__rxqntukxznwn9mbq'; embed_container.appendChild( video ); var sourceElem = document.createElement( "source" ); sourceElem.type = "video/mp4"; sourceElem.src = 'https://failiem.lv/down.php?i=rjbrqryrh'; video.appendChild(sourceElem); if ( document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq") ) document.getElementById( "preloader_rjbrqryrh__rxqntukxznwn9mbq" ).style.display = 'none'; initVideoJS(); } /* Construct player, download one file and append it to container. */ function filesfm_ep_loaded() { embed_container.style.width = embed_container.offsetWidth + 'px'; embed_container.style.height = embed_container.offsetHeight + 'px'; if ( ( ! FilesFm_P2P || ! FilesFm_P2P.WEBRTC_SUPPORT ) && bolIsVideoFile ) { files_fm_video_fallback(); } else if ( ! FilesFm_P2P || ! FilesFm_P2P.WEBRTC_SUPPORT ) { showErrorMessagerjbrqryrh__rxqntukxznwn9mbq( 'Atvaino, tavs interneta pārlūks neatbalsts lejupielādi ar WebTorrent, lūdzu izmanto citu pārlūku.' ) } else { var config = { tracker: { rtcConfig: { "iceServers": [{"urls": ["stun:stun.files.fm:443"], "username": "filesfm", "credential": "password", "credentialType": "password"},{"urls": ["turn:stun.files.fm:443"], "username": "filesfm", "credential": "password", "credentialType": "password" }] } } }; config.WebRequests_QueryString = 'PHPSESSID=d683e0c6c76ab0242f6f14139f4a110a7cc86fa6'; var objFilesFmP2P = new FilesFm_P2P(config); objFilesFmP2P.addTorrent( 'file', 'rjbrqryrh', function ( torrent ){ files_fm__torrent = torrent; // Torrent file downloaded files_fm__torrent.on( 'ready', function () { // Send presentation type to WebSeed (file download/view) this.presentation_type = 'view'; // Remove default selection (whole torrent) this.deselect( 0, this.pieces.length - 1, false ) // Select only required file, deselect all other. // Append required file to container and do some setup. this.files.forEach( function ( file ) { if ( file.name != "files-fm-lifetime 1tb.mp4" ) { file.deselect(); } else { if (current_file!==null) return; var mimetype = file._getMimeType(); current_file = file; // Append only certain file types if (mimetype && ( mimetype.indexOf('video/mp4')===0 || mimetype.indexOf('video/m4v')===0 || mimetype.indexOf('video/m4a')===0 || mimetype.indexOf('video/mkv')===0 || mimetype.indexOf('video/webm')===0 || mimetype.indexOf('video/ogg')===0 )) { var video = document.createElement( "video" ); video.style.visibility = 'hidden'; video.style.width = '0px'; video.style.height = '0px'; video.preload = "metadata"; video.poster = poster_url; if ( poster ) video.style.width = poster.style.width; video.controls=true; video.id = 'player_video_rjbrqryrh__rxqntukxznwn9mbq'; embed_container.appendChild( video ); //if ( poster ) // poster.style.display = 'none'; file.renderTo( video, { autoplay: autoplay }, function (err, elem){ var sourceElem = document.createElement( "source" ); sourceElem.type = mimetype; sourceElem.src = elem.src; elem.appendChild(sourceElem) initVideoJS(); } ); } else if( mimetype && ( mimetype.indexOf('audio')===0 || mimetype.indexOf('image')===0 || mimetype.indexOf('application/pdf')===0 || mimetype.indexOf('application/ogg')===0)) { // Embed file to container file.appendTo( embed_container, { autoplay: autoplay }, function (err, elem){ if ( poster ) { poster.style.display = 'none'; poster_div_before.style.display = 'none'; poster_div_after.style.display = 'none'; } if ( document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq") ) document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq").style.display = 'none'; } ) } else { file.getBlobURL(function (err, url){ if ( document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq") ) document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq").style.display = 'none'; var link = document.createElement('a'); link.href = url; link.innerHTML = 'SAVE AS'; }); } bol_content_added = true; } } ) }); /*******************************************************************************/ /*******************************************************************************/ var current_file = null; /*******************************************************************************/ var indicators_bg_color = 'transparent'; var indicators_color = '#CDD6DA'; indicators_div = document.createElement( 'div' ); indicators_div.style.position = 'absolute'; indicators_div.style.visibility = 'hidden'; indicators_div.style.zIndex = '999999'; indicators_div.style.top = '-5px'; indicators_div.style.right = '5px'; embed_container.appendChild( indicators_div ); embed_container.addEventListener("mouseenter", function( event ) { setTimeout(function (){ // indicators_div.style.visibility = 'visible'; }, 500) }, false); embed_container.addEventListener("mouseleave", function( event ) { setTimeout(function (){ indicators_div.style.visibility = 'hidden'; }, 500) }, false); var progress_indicator_div = document.createElement( 'div' ); progress_indicator_div.style.display = 'inline-block'; progress_indicator_div.style.backgroundColor = indicators_bg_color; progress_indicator_div.style.margin = '10px'; progress_indicator_div.style.color = indicators_color; indicators_div.appendChild( progress_indicator_div ); var remining_time_indicator_div = document.createElement( 'div' ); remining_time_indicator_div.style.display = 'inline-block'; remining_time_indicator_div.style.backgroundColor = indicators_bg_color; remining_time_indicator_div.style.margin = '10px'; remining_time_indicator_div.style.color = indicators_color; indicators_div.appendChild( remining_time_indicator_div ); var received_div = document.createElement( 'div' ); received_div.style.display = 'inline-block'; received_div.style.backgroundColor = indicators_bg_color; received_div.style.margin = '10px'; received_div.style.color = indicators_color; indicators_div.appendChild( received_div ); var download_speed_div = null; var uploaded_div = null; var upload_speed_div = null; var peers_div = null; var webseed_div = null; if ( window.innerWidth >= 600 ) { download_speed_div = document.createElement('div'); download_speed_div.style.display = 'inline-block'; download_speed_div.style.backgroundColor = indicators_bg_color; download_speed_div.style.margin = '10px'; download_speed_div.style.color = indicators_color; indicators_div.appendChild(download_speed_div); uploaded_div = document.createElement('div'); uploaded_div.style.display = 'inline-block'; uploaded_div.style.backgroundColor = indicators_bg_color; uploaded_div.style.margin = '10px'; uploaded_div.style.color = indicators_color; indicators_div.appendChild(uploaded_div); upload_speed_div = document.createElement('div'); upload_speed_div.style.display = 'inline-block'; upload_speed_div.style.backgroundColor = indicators_bg_color; upload_speed_div.style.margin = '10px'; upload_speed_div.style.color = indicators_color; indicators_div.appendChild(upload_speed_div); peers_div = document.createElement('div'); peers_div.style.display = 'inline-block'; peers_div.style.backgroundColor = indicators_bg_color; peers_div.style.margin = '10px'; peers_div.style.color = indicators_color; indicators_div.appendChild(peers_div); webseed_div = document.createElement('div'); webseed_div.style.display = 'inline-block'; webseed_div.style.backgroundColor = indicators_bg_color; webseed_div.style.margin = '10px'; webseed_div.style.color = indicators_color; indicators_div.appendChild(webseed_div); } setInterval(function (){ if ( files_fm__torrent === null || current_file == null || typeof(current_file.progress) === 'undefined' ) return; // Update progress bar var intProgressPercents = Math.round( current_file.progress * 100 ); progress_indicator_div.innerHTML = intProgressPercents + '%'; // Update estimated download end time var intTimeRemaining_MiliSeconds = files_fm__torrent.timeRemaining; if ( intTimeRemaining_MiliSeconds == Infinity ) { strTimeRemaining = '--:--:--'; } else { var intTimeRemaining_Days = Math.floor( intTimeRemaining_MiliSeconds / ( 1000 * 60 * 60 * 24 ) ); var intTimeRemaining_Hours = Math.floor( ( intTimeRemaining_MiliSeconds % ( 1000 * 60 * 60 * 24 ) ) / ( 1000 * 60 * 60 ) ); var intTimeRemaining_Minutes = Math.floor( ( intTimeRemaining_MiliSeconds % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ); var intTimeRemaining_Seconds = Math.floor( ( intTimeRemaining_MiliSeconds % ( 1000 * 60 ) ) / 1000 ); var strTimeRemaining = ''; if ( intTimeRemaining_Days > 0 ) { strTimeRemaining = intTimeRemaining_Days + 'd '; } if ( intTimeRemaining_Hours < 10 ) { strTimeRemaining += '0'; } strTimeRemaining += intTimeRemaining_Hours + ':'; if ( intTimeRemaining_Minutes < 10 ) { strTimeRemaining += '0'; } strTimeRemaining += intTimeRemaining_Minutes + ':'; if ( intTimeRemaining_Seconds < 10 ) { strTimeRemaining += '0'; } strTimeRemaining += intTimeRemaining_Seconds; } remining_time_indicator_div.innerHTML = strTimeRemaining; if ( webseed_div ) { let int_web_seed_count = 0; for (let id in files_fm__torrent._peers) { if (!files_fm__torrent._peers.hasOwnProperty(id)) continue; if (files_fm__torrent._peers[id].type === 'webSeed' && !files_fm__torrent._peers[id].destroyed) int_web_seed_count++; } webseed_div.innerHTML = 'WS: ' + int_web_seed_count; } // Update downloaded size if ( received_div ) { received_div.innerHTML = 'Down: ' + convertBytesToSizeSting(files_fm__torrent.received); } if ( download_speed_div ) { download_speed_div.innerHTML = convertBytesToSizeSting(files_fm__torrent.downloadSpeed) + '/sec'; } // Update uploaded size if ( uploaded_div ) { uploaded_div.innerHTML = 'Up: ' + convertBytesToSizeSting(files_fm__torrent.uploaded); } if (upload_speed_div) { upload_speed_div.innerHTML = convertBytesToSizeSting(files_fm__torrent.uploadSpeed) + '/sec'; } if ( peers_div ) { peers_div.innerHTML = 'Peers: ' + files_fm__torrent.wires.length; } }.bind(this), 1000); var convertBytesToSizeSting = function( intBytes ) { var strSizeSting = ''; if ( intBytes < 1024 ) { strSizeSting = intBytes + ' B'; } else { var intKB = Math.round( intBytes / 1024 ); if ( intKB < 1024 ) { strSizeSting = intKB + ' kB'; } else { var intMB = Math.round( intKB / 1024 ); if ( intMB < 1024 ) { strSizeSting = intMB + ' MB'; } else { var dblGB = Math.round( intMB / 1024 * 10 ) / 10; strSizeSting = dblGB + ' GB'; } } } return strSizeSting; } /*******************************************************************************/ } ) } } function initVideoJS () { var logoHref = "https://failiem.lv"; var logoImgUrL = logoHref; logoImgUrL += "/images/logo/white/failiem_logo_full.svg"; var bolCanComment = document.getElementById( "gallery2__comments" ) != null && typeof( showGalleryInfo ) !== "undefined"; var bolCanShare = typeof showSharePopup === "function"; videojs = new FilesFm_VideoJS( "player_video_rjbrqryrh__rxqntukxznwn9mbq", { autoplay : autoplay , } ); videojs.objPlayer.on( 'ready', function () { // Add title to PlaybackRateMenuButton var domMenuTitle = document.createElement( 'div' ); domMenuTitle.className = 'vjs-menu-title bx_allow_events'; domMenuTitle.innerHTML = 'Speed'; videojs.objPlayer.controlBar.playbackRateMenuButton.menu.el().prepend( domMenuTitle ); } ); var videoCont = document.getElementById( "player_video_rjbrqryrh__rxqntukxznwn9mbq" ); for ( var i = 0; i < videoCont.childNodes.length; i++ ) { if ( videoCont.childNodes[ i ].className == "vjs-big-play-button" ) { videoCont.childNodes[ i ].style.display = "none"; } } if ( document.getElementById("preloader_rjbrqryrh__rxqntukxznwn9mbq") ) document.getElementById( "preloader_rjbrqryrh__rxqntukxznwn9mbq" ).style.display = 'none'; // the autoplay attribute doesn't work, // the .play function on videojs also doesn't work, // maybe because it must be called from an onclick event // so we just call play on the video element instead videojs.getVJS().ready( function() { var video = document.querySelector( '#player_video_rjbrqryrh__rxqntukxznwn9mbq video' ); video.style.width = "100%"; video.pause(); video.play(); embed_container.style.visibility = 'hidden'; if ( poster ) { poster.style.display = 'none'; poster_div_before.style.display = 'none'; poster_div_after.style.display = 'none'; } video.style.visibility = 'visible'; video.style.width = '100%'; video.style.height = '100%'; setTimeout(function (){ embed_container.style.visibility = 'visible'; }, 20); // indicators_div.style.visibility = 'visible'; } ); if( typeof fitEmbedPlayer === "function" ) { fitEmbedPlayer( document.getElementById( "player_video_rjbrqryrh__rxqntukxznwn9mbq" ) ); } if ( typeof ( showGalleryInfo ) !== "undefined" ) { var children = document.getElementById( "player_video_rjbrqryrh__rxqntukxznwn9mbq" ).getElementsByTagName( "*" ); for ( var z in children ) { if( children.hasOwnProperty( z ) ) { children[ z ].classList.add( 'bx_allow_events' ); } } } videojs.getVJS().ready( function() { var player = document.querySelector( "#player_video_rjbrqryrh__rxqntukxznwn9mbq" ); var height = 'auto'; if( typeof fitVideoPlayer === "function" ) { fitVideoPlayer( player ); } else if( height != "auto" && height != "100%" ) { player.style.paddingTop = height; } } ); } function getPreloader() { return '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '\n' + ' \n' + ' \n' + ' \n' + '' + ''; } function getPlayButton() { return '
'; } function mobileAndTabletCheck() { var check = false; (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera); return check; }; })(); function showErrorMessagerjbrqryrh__rxqntukxznwn9mbq ( strErrorMessage ) { var error_container = document.createElement('div'); error_container.style.padding = '10px'; error_container.style.fontSize = '14px'; error_container.style.lineHeight = '20px'; error_container.style.border = '1px solid #ebccd1'; error_container.style.borderRadius = '2px'; error_container.style.color = 'a94442'; error_container.style.backgroundColor = '#f2dede'; error_container.innerHTML = strErrorMessage; // Hide preloader if (document.getElementById('filesfm_embed_container__rjbrqryrh__rxqntukxznwn9mbq')) document.getElementById('filesfm_embed_container__rjbrqryrh__rxqntukxznwn9mbq').style.display = 'none'; // Hide container if (document.getElementById('preloader_rjbrqryrh__rxqntukxznwn9mbq')) document.getElementById('preloader_rjbrqryrh__rxqntukxznwn9mbq').style.display = 'none'; var existing_script_tag = document.getElementById('filesfm_embed_js__rjbrqryrh'); existing_script_tag.parentNode.insertBefore(error_container, existing_script_tag); }